Three-dimensional modeling apparatus, method, and medium, and three-dimensional shape data recording apparatus, method, and medium

ABSTRACT

A three-dimensional shape modeling of a real object that reduces the limitations on the target shape and color. The rough shape of the target object is determined by a silhouette method (which has limitation on the target shape) and, at the same time, the detailed shape of the target object is determined by a triangulation method or the like (which has limitation on the target color). By using both sets of information, the consistency between the rough and detailed shape information are checked. For the portions where the consistency is not satisfied (points where detailed shape information is absent or points where detailed shape section is present outside the rough shape), rough shape is assumed to be the final object information and for other portions, the detailed shape is taken as the final object information. In this manner, three-dimensional shape modeling with reduced limitations on the target shape and color can be performed.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates to a three-dimensional modeling technique for producing three-dimensional shape data of a target from a plurality of image data of the target, and in particular to three-dimensional modeling apparatus, method, and medium, and three-dimensional shape data recording apparatus, method, and medium.

[0003] 2. Description of the Related Art

[0004] Conventionally, it is widely known to use a silhouette method where three-dimensional shape is estimated from silhouette information of a target, a triangulation method using a laser light, or a space coding method where a plurality of black-and-white patterns are projected, as a method for producing various three-dimensional images.

[0005] In the silhouette method, the shape data is produced as follows. For example, the target is placed on a rotational table, a plurality of images are captured with a suitable angle difference, and a silhouette image of the target is determined for each of the images. Here, by using a background plate such as a blue background during the capturing process, silhouette images can be easily and stably obtained using a widely-known chroma key technique.

[0006] If the positional relationship between the rotational table and the capturing camera is accurately known in advance, a silhouette can be projected to the assumed three-dimensional space on the rotational table from each viewpoint. The space where all silhouettes are projected is extracted as the object region. In this manner, the three-dimensional shape of the target is estimated.

[0007] The triangulation method using a laser light, on the other hand, uses a laser light irradiating device having a basic structure as shown in FIG. 15. Specifically, as shown in FIG. 15, a beam shape laser light is converted to a slit light by a cylindrical lens and the direction of the slit light is altered using a galvano-mirror or a polygon mirror, to allow a two-dimensional scan.

[0008] The laser light irradiated onto the target in this manner is then captured by an image inputting section such as a camera. The laser light has a sufficiently larger intensity than a typical illumination light, and thus, the point (or line) of maximum luminance can be easily extracted from the input image. The positional relationship between the laser light source and the image inputting section is accurately measured in advance. If the angle of the mirror when the image is input is accurately known, the distance from the camera or the laser light source to the target can be calculated using the principle of triangulation.

[0009] In a space coding method, a plurality of black-and-white patterns such as the patterns shown in FIG. 9 are projected onto a target and the target is captured. Then, for each image, it is determined which of the black or white pattern is projected on each pixel. It is known that the accuracy can be improved by comparing the projected image with an image projected by a pattern obtained by inverting the patterns described above.

[0010] In this manner, when seven patterns are projected, for example, the image can be divided into a total of 128 strip regions. If the direction of the pattern and the direction of the camera towards the irradiating section are approximately perpendicular, the pattern sequence of each pixel and the direction of the light from the pattern projecting section can be associated. Thus, the distance between the camera or the laser light source to the target can be calculated based on the principle of triangulation.

[0011] In the above silhouette method, the three-dimensional shape can be estimated once the background and the target are separated and silhouette information is obtained. Thus, there is no limitation on the material or the color of the target. However, there is a problem that the three-dimensional shape of any shape that does not show a silhouette outline cannot be accurately estimated. Specific examples of such a shape include the internal section of a cup. This portion always corresponds to the internal silhouette of another portion and cannot be observed as a silhouette outline, and the three-dimensional shape cannot be accurately estimated by the silhouette method.

[0012] In the triangulation method using a laser light and space coding method, on the other hand, it is fundamentally necessary to irradiate light onto the target and distinguish between the irradiated and non-irradiated sections. However, in a black portion, for example, the hair portion of a person, this distinction is very difficult. Therefore, in the triangulation method using laser light and space coding method, it is difficult to obtain the three-dimensional shape information for materials and colors that absorb light. There is a solution to this problem using a very strong laser light, but when the target is a person, there will be a problem regarding safety.

[0013] In addition, because a plurality of patterns must be projected in time division in the space coding method, a high-speed data inputting operation is difficult. Similarly, in the triangulation method using a laser light, because only one laser beam can be irradiated and this one laser beam must be scanned, there is a problem that a high-speed data inputting operation is difficult.

SUMMARY OF THE INVENTION

[0014] According to the present invention, there is provided a three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising projection means for projecting pattern light onto the three dimensional object; image input means for inputting an image of the three dimensional object; rough shape calculation means for calculating a rough shape from the image; detailed shape calculation means for calculating a detailed shape from the image; and three dimensional shape data generating means for generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0015] Further, there is provided a three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising projection means for projecting pattern light onto the three dimensional object; image input means for inputting an image of the three dimensional object; rough shape input means for inputting a rough shape of the three dimensional object; detailed shape calculation means for calculating a detailed shape from the image; and three dimensional shape data generating means for generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0016] Still further, there is provided a three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising image input means for inputting an image of the three dimensional object, the image being obtained by projecting pattern light onto the three dimensional object; rough shape calculation means for calculating a rough shape from the image; detailed shape calculation means for calculating a detailed shape from the image; and three dimensional shape data generating means for generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0017] Also, there is provided a three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising image input means for inputting an image of the three dimensional object, the image being obtained by projecting pattern light onto the three dimensional object; rough shape, input means for inputting a rough shape of the three dimensional object; detailed shape calculation means for calculating a detailed shape from the image; and three dimensional shape data generating means for generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0018] Preferably, in the above three dimensional modeling apparatus, the three dimensional shape data generating means may determine the final three dimensional shape data based on the following rule; if the detailed shape exits inside the rough shape, then the detailed shape is the final three dimensional shape data of said object, otherwise the rough shape is taken as the final three dimensional shape data of said object.

[0019] Also, in the above three dimensional modeling apparatus, the three dimensional shape data generating means may obtain a region where the object surface can exist based on the rough shape, to generate three dimensional shape data of the three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.

[0020] Further, in the above three dimensional modeling apparatus, the detailed shape calculation means may obtain a plurality of object surface location candidates from the input image.

[0021] Still further, preferably, in the above three dimensional modeling apparatus, the detailed shape calculation means may set a region where the object surface cannot exist in a portion inside the rough shape and may determine a region inside the rough shape other than the region where the object surface cannot exist as a region where the object surface can exist, to generate three dimensional shape data of the three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.

[0022] Preferably, in the above three dimensional modeling apparatus, the three dimensional shape data generating means may determine a final object surface location candidate from a plurality of object surface location candidates based on a region where the object surface can exist and may generate three dimensional shape data of the three dimensional object based on the final object surface location candidate.

[0023] Also, in the above three dimensional modeling apparatus, the rough shape may be calculated by the rough shape calculation means based on silhouette information obtained from the object image input by the image input means.

[0024] According to the present invention, there is provided a three dimensional shape data recording apparatus for recording three dimensional shape data of a three dimensional object, comprising three dimensional shape data generation means for generating three dimensional shape data of the three dimensional object; three dimensional shape data reliability assigning means for assigning a data reliability evaluation value to each of the three dimensional shape data; and three dimensional shape data recording means for recording three dimensional shape data to which the reliability evaluation value is assigned in a medium.

[0025] Also, there is provided a three dimensional shape data recording apparatus for recording three dimensional shape data of a three dimensional object, comprising three dimensional shape data capturing means for capturing three dimensional shape data of the three dimensional object; three dimensional shape data reliability assigning means for assigning a data reliability evaluation value to each of the three dimensional shape data; and three dimensional shape data recording means for recording three dimensional shape data to which the reliability evaluation value is assigned in a medium.

[0026] Still further, there is provided a three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of projecting pattern light onto the three dimensional object; inputting an image of the three dimensional object; calculating a rough shape from the image; calculating a detailed shape from the image; and generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0027] Moreover, there is provided a three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of: projecting pattern light onto the three dimensional object; inputting an image of the three dimensional object; capturing a rough shape of the three dimensional object; calculating a detailed shape from the image; and generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0028] Still further, there is provided a three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of inputting an image of the three dimensional object, the image being obtained by projecting pattern light onto the three dimensional object; calculating a rough shape from the image; calculating a detailed shape from the image; and generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0029] Further, there is provided a three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of inputting an image of the three dimensional object, the image being obtained by projecting pattern light onto the three dimensional object; capturing a rough shape of the three dimensional object; calculating a detailed shape from the image; and generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0030] In the above three dimensional modeling method, the step of generating three dimensional shape data may include determining the final three dimensional shape data based on the following rule; if the detailed shape exits inside the rough shape, then the detailed shape is the final three dimensional shape data of said object, otherwise the rough shape is taken as the final three dimensional shape data of said object.

[0031] Further, in the above three dimensional modeling method, the step of generating three dimensional shape data may include obtaining a region where the object surface can exist based on the rough shape, to generate three dimensional shape data of the three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.

[0032] Preferably, in the above three dimensional modeling method, the step of calculating detailed shape may include obtaining a plurality of object surface location candidates from the input image.

[0033] Also, in the above three dimensional modeling method, the step of calculating detailed shape may include setting a region where the object surface cannot exist in a portion inside the rough shape and determining a region inside the rough shape other than the region where the object surface cannot exist as a region where the object surface can exist, to generate three dimensional shape data of the three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.

[0034] Further, in the above three dimensional modeling method, the step of generating three dimensional shape data may include determining a final object surface location candidate from a plurality of object surface location candidates based on a region where the object surface can exist and generating three dimensional shape data of the three dimensional object based on the final object surface location candidate.

[0035] Preferably, in the above three dimensional modeling method, the rough shape may be calculated by the rough shape calculation means based on silhouette information obtained from the object image input by the step of inputting an image.

[0036] According to the present invention, there is also provided a three dimensional shape data recording method for recording three dimensional shape data of a three dimensional object, comprising the steps of generating three dimensional shape data of the three dimensional object; assigning a data reliability evaluation value to each of the three dimensional shape data; and recording three dimensional shape data to which the reliability evaluation value is assigned in a medium.

[0037] Further, there is provide a three dimensional shape data recording method for recording three dimensional shape data of a three dimensional object, comprising the steps of capturing three dimensional shape data of the three dimensional object; assigning a data reliability evaluation value to each of the three dimensional shape data; and recording three dimensional shape data to which the reliability evaluation value is assigned in a medium.

[0038] Still further, there is provided a medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, the program comprising the steps of controlling pattern light projection section connected to the computer for projecting pattern light onto the three dimensional object; inputting an image of the three dimensional object; calculating a rough shape from the image; calculating a detailed shape from the image; and generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0039] Moreover, there is provided a medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, the program comprising the steps of controlling a pattern light projection section connected to the computer for projecting pattern light onto the three dimensional object; inputting an image of the three dimensional object; capturing a rough shape of the three dimensional object; calculating a detailed shape from the image; and generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0040] Still further, there is provided a medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, the program comprising the steps of: inputting an image of the three dimensional object, which is obtained by projecting pattern light onto the three dimensional object; calculating a rough shape from the image; calculating a detailed shape from the image; and generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0041] There is also provided a medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, the program comprising the steps of inputting an image of the three dimensional object, which is obtained by projecting pattern light onto the three dimensional object; capturing a rough shape of the three dimensional object; calculating a detailed shape from the image; and generating three dimensional shape data of the three dimensional object based on the rough shape and the detailed shape.

[0042] In the above medium, the step of generating three dimensional shape data may include determining the final three dimensional shape data based on the following rule; if the detailed shape exits inside the rough shape, then the detailed shape is the final three dimensional shape data of said object, otherwise the rough shape is taken as the final three dimensional shape data of said object.

[0043] Also, in the above medium, the step of generating three dimensional shape data may include obtaining a region where the object surface can exist based on the rough shape, to generate three dimensional shape data of the three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.

[0044] Preferably, in the above medium, the step of calculating a detailed shape may include obtaining a plurality of object surface location candidates from the input image.

[0045] Further, in the above medium, the step of calculating a detailed shape may include setting a region where the object surface cannot exist in a portion inside the rough shape and determining a region inside the rough shape other than the region where the object surface cannot exist as a region where the object surface can exist, to generate three dimensional shape data of the three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.

[0046] Further, preferably, in the above medium, the step of generating three dimensional shape data may include determining a final object surface location candidate from a plurality of object surface location candidates based on a region where the object surface can exist and generating three dimensional shape data of the three dimensional object based on the final object surface location candidate.

[0047] Still further, in the above medium, the rough shape may be calculated by the step of calculating a rough shape based on silhouette information obtained from the object image input by the step of inputting an image.

[0048] According to the present invention, there is also provided a medium having a program recorded therein for causing a computer to record three dimensional shape data of a three dimensional object in the medium, the program comprising the steps of generating three dimensional shape data of the three dimensional object; assigning a data reliability evaluation value to each of the three dimensional shape data; and recording three dimensional shape data to which the reliability evaluation value is assigned in the medium.

[0049] There is also provided a medium having a program recorded therein for causing a computer to record three dimensional shape data of a three dimensional object in the medium, the program comprising the steps of capturing three dimensional shape data of the three dimensional object; assigning a data reliability evaluation value to each of the three dimensional shape data; and recording three dimensional shape data to which the reliability evaluation value is assigned in the medium.

[0050] Also, there is provided a medium having three dimensional shape data of a three dimensional object recorded therein, the medium holding data reliability evaluation value information for each of the three dimensional shape data.

[0051] Still further, the present invention provides a three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: projection means for projecting pattern light onto the three dimensional object; image input means for inputting an image of the three dimensional object; and three dimensional shape calculation means for calculating a three dimensional shape of the three dimensional object from the input image, wherein the three dimensional shape calculation means extracts a pattern projected region and a pattern border region in the input image to calculate the three dimensional shape of the three dimensional object based on these regions.

[0052] In the three dimensional modeling apparatus according to the present invention, the detailed shape calculation means may extract a pattern projected region and a pattern border region in the input image to calculate the detailed shape of the three dimensional object based on these regions.

[0053] In the above three dimensional modeling apparatus, preferably, the pattern light may have a plurality of binary patterns.

[0054] In the above three dimensional modeling apparatus, preferably, the image input means may perform image input from at least two positions.

[0055] Further, there is also provided a three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising projection means for projecting pattern light onto the three dimensional object; image input means for inputting an image of the three dimensional object; and three dimensional shape calculation means for calculating a three dimensional shape of the three dimensional object from the input image, wherein the image input means performs image input from at least two positions, the three dimensional shape calculation means extracts a portion in the input image where color or density changes, and matching of portions where color or density changes is performed between input images, to calculate the three dimensional shape of the three dimensional object.

[0056] In the three dimensional modeling apparatus according to the present invention, preferably, the image input means may perform image input where the images are captured at least two points at different locations, the detailed shape calculation means may extract a portion in the input image where color or density changes, and matching of portions where color or density changes may be performed between input images, to calculate the three dimensional shape of the three dimensional object.

[0057] In the above three dimensional modeling apparatus, preferably, the image input means may perform image input from at least two different points at different locations, the detailed shape calculation means may extract a portion in the input image where color or density changes, and matching of potions where color or density changes may be performed between input images, to calculate the three dimensional shape of the three dimensional object.

[0058] Preferably, in the above three dimensional modeling apparatus, the pattern light for projection may include multi-color patterns in which adjacent patterns have different colors having a hue difference of at least 90 degree or more, or a brightness difference of 0.3 or more, when the colors are represented in an HSV space.

[0059] In the above three dimensional modeling apparatus, the matching of the portions where color or density changes may be obtained based on properties of the portions where color or density changes, which are obtained from the input images.

[0060] Further in the above three dimensional modeling apparatus, the property of the portion where color or density changes may be color information regarding portions located to the left and right of, or above and below, the portion where color or density changes in the input image.

[0061] Still further, in the three dimensional modeling apparatus, averaging may be performed to the input images when the property is obtained.

[0062] Also, in the three dimensional modeling apparatus, the averaging may be performed for each of divided regions of the input image.

[0063] Preferably, the present invention provides a three dimensional modeling apparatus, further comprising moving means for moving the projection means and the image input means.

[0064] Preferably, the moving means may move the projection means and the image input means based on the rough shape.

[0065] According to the present invention, there is also provided a three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: at least two three dimensional shape input means for obtaining a three dimensional shape of the three dimensional object; and moving means for moving the three dimensional shape input means, wherein the three dimensional shape input means have different three dimensional input accuracy.

[0066] In the three dimensional modeling apparatus, preferably, the moving means may move the three dimensional shape input means having higher three dimensional input accuracy based on three dimensional shape information obtained by the three dimensional shape input means having lower three dimensional input accuracy.

[0067] According to the present invention, there is also provided a three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of projecting pattern light onto the three dimensional object; inputting an image of the three dimensional object; and calculating a three dimensional shape of the three dimensional object from the input image, wherein the step of calculating the three dimensional shape includes extracting a pattern projected region and a pattern border region in the input image to calculate the three dimensional shape of the three dimensional object based on these regions.

[0068] In the three dimensional modeling method according to the present invention, preferably, the step of calculating the detailed shape may include extracting a pattern projected region and a pattern border region in the input image to calculate the detailed shape of the three dimensional object based on these regions.

[0069] In the three dimensional modeling method, preferably, the pattern light may have a plurality of binary patterns.

[0070] Also, in the three dimensional modeling method, the step of inputting an image may include performing image input from at least two positions.

[0071] Still further, according to the present invention, there is provided a three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of projecting pattern light onto the three dimensional object; inputting an image of the three dimensional object; and calculating a three dimensional shape of the three dimensional object from the input image, wherein the step of inputting an image includes performing image input where the images are captured at least two positions, the step of calculating the three dimensional shape includes extracting a portion in the input image where color or density changes, and matching portions where color or density changes between input images, to calculate the three dimensional shape of the three dimensional object.

[0072] In the three dimensional modeling method according to the present invention, preferably, the step of inputting an image may include performing image input from at least two points at different locations, the step of calculating a detailed shape includes extracting a portion in the input image where color or density change, and matching portions where color or density changes between input images, to calculate the three dimensional shape of the three dimensional object.

[0073] In the three dimensional modeling method according to the present invention, preferably, the pattern light for projection may include multi-color patterns in which adjacent patterns have different colors having a hue difference of at least 90 degree or more, or a brightness difference of 0.3 or more, when the colors are represented in an HSV space.

[0074] In the three dimensional modeling method, the matching of the portions where color or density changes may be obtained based on properties of the portions where color or density changes, which are obtained from the input image.

[0075] In the three dimensional modeling method, preferably, the property of the portion where color or density changes may be color information regarding portions located to the left and right of, or above and below, the portion where color or density changes in the input images.

[0076] Further, in the three dimensional modeling method, averaging may be performed for the input images when the property is obtained.

[0077] Still further, in the three dimensional modeling method, the averaging may be performed for each of divided regions of the input images.

[0078] According to the present invention, there is also provided a three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising: at least two three-dimensional shape inputting steps of obtaining the three dimensional shape of the three dimensional object; and a step of moving a three dimensional shape input section, wherein the three dimensional shape inputting steps have different three dimensional input accuracy.

[0079] Further, there is also provide a three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising first three-dimensional shape measuring means for obtaining rough shape information of the three dimensional object; second three dimensional shape measuring means for obtaining detailed shape information of the three dimensional object; and a three dimensional shape data generating section for generating the three dimensional shape data of the three dimensional object based on the rough shape information and the detailed shape information.

[0080] According to the present invention, control means may be further provided for controlling the position of the second three dimensional shape measuring means, the control means being controlled based on the rough shape information obtained by the first three dimensional measuring means.

[0081] Further, there is also provided a three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising: a first three dimensional shape measuring step of obtaining rough shape information of the three dimensional object; a second three dimensional shape measuring step of obtaining detailed shape information of the three dimensional object; and a three dimensional shape data generating step of generating the three dimensional shape data of the three dimensional object based on the rough shape information and the detailed shape information.

[0082] Further, the present invention provides a medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, the program comprising a first three dimensional shape measuring step of obtaining rough shape information of the three dimensional object; a second three dimensional shape measuring step of obtaining detailed shape information of the three dimensional object; and a three dimensional shape data generating step of generating the three dimensional shape data of the three dimensional object based on the rough shape information and the detailed shape information.

BRIEF DESCRIPTION OF THE DRAWING

[0083]FIG. 1 is a structural diagram showing one embodiment of the present invention.

[0084]FIG. 2 is a flowchart showing one embodiment of the present invention.

[0085]FIG. 3 is a diagram for explaining a perspective ratio.

[0086]FIG. 4 is a diagram for explaining calibration (calculation of external parameters).

[0087]FIG. 5 is a diagram for explaining the principle of Hough transform.

[0088]FIG. 6 is a diagram for explaining parameter determination in the Hough transform.

[0089]FIG. 7 is a flowchart for rough shape calculation by a silhouette method.

[0090]FIG. 8 is a diagram for explaining the shape reconstruction by the silhouette method.

[0091]FIG. 9 shows an example of 7 types (A through G) of binary patterns.

[0092]FIG. 10 is a diagram showing the principle of space coding method using the binary patterns.

[0093]FIG. 11 is a diagram explaining the rough depth map, detailed depth map, and final depth map.

[0094]FIG. 12 is a flowchart for another embodiment of the present invention.

[0095]FIG. 13 is a diagram explaining the relationship between a plurality of surface candidates and possible existence region for a surface based on the rough shape.

[0096]FIG. 14 is an example of three-dimensional shape data with reliability information.

[0097]FIG. 15 is a diagram explaining the basic structures of a laser light irradiating section.

[0098]FIG. 16 is a diagram showing an example of inputting pattern projected images by two cameras.

[0099]FIG. 17 is a diagram explaining an example of a code assignment error in the binary pattern.

[0100]FIG. 18 is a diagram showing another example of binary patterns.

[0101]FIG. 19 is a diagram explaining assignment of six types of coding regions.

[0102]FIG. 20 is a diagram showing an example of a color code pattern.

[0103]FIG. 21 is a diagram showing, as a model, the depth value of the corresponding characteristic point candidate obtained using three cameras, A, B, and C.

DESCRIPTION OF PREFERRED EMBODIMENT

[0104] The preferred embodiments of the present invention will now be described.

[0105] In the following description and in the appended claims, the term “image” includes a wide variety of images from digitized image information (image data) that can be processed by a computer to images that are printed on a 35 mm film or on print paper.

Description of the Structure

[0106]FIG. 1 conceptually shows a structure of the present invention. An input target 10 is placed on a rotational mount 11. A pattern projecting section 12 projects a pattern light onto the target 10. The target with the pattern projected is captured by a light receiving section 13.

[0107] The pattern projection and capturing are controlled by a controlling section 14. The captured image data is sent to a processing section 15. At the processing section, a three-dimensional shape calculation is performed, and the obtained three-dimensional shape data is stored in a recording section 16.

[0108] Generally, an analog camera or digital camera is used as the light receiving section 13, but a special-purpose camera which obtains a non-visible light image can also be used depending on the target. Also, in general, a calculation unit such as a personal computer or a workstation is used as the controlling section 14 and the processing section 15. Any recording medium can be used as the recording section 16 such as, for example, hard disk drive, CD-R, floppy disk, MO, and DVD, or the like.

[0109]FIG. 2 roughly shows a flow of the process according to the present invention. The process includes a total of four steps, including the steps of calibration, rough shape extraction, detailed shape extraction, and three-dimensional shape data production.

[0110] At the calibration step (S20), the internal parameters (for example, view angle information, that is, the ratio between the focal length and CCD size or lens distortion) and external parameters (camera positions) of the cameras are determined. At the rough shape extraction step (S21), rough shape information of the target is obtained. At the detailed shape extraction step (S22), on the other hand, detailed shape information of the target is obtained. At the three-dimensional shape data production step (S23), the rough and detailed shape information are integrated to produce final three-dimensional shape data.

[0111] An embodiment of the present invention will now be described in more detail.

[0112] It is assumed that the target 10 is placed on the rotational mount 11 and images of the target 10 are captured by a camera while the rotational mount 11 is rotated. It is also possible to place a plurality of cameras 13 around the target 10 and obtain a plurality of images of the target 10 from these cameras. The configuration with a plurality of cameras is preferable when the target 10 is an object which cannot be placed on the rotational mount 11 or an object which cannot remain stationary for a long period of time.

[0113] It is also assumed that the shape measurement is taken using the silhouette method at the rough shape extraction step and using an active stereo method by the space coding method using binary patterns at the detailed shape extraction step. Therefore, two cameras are used as the light receiving section 13.

[0114] The embodiment will be described following the flow shown in FIG. 2.

Calibration Step

[0115] At the calibration step, the internal and external parameters of the cameras 13 are determined. The internal parameters of a camera 13 include the view angle information (a ratio between the focal length and CCD size, which will be referred to as a “perspective ratio” hereinafter) and lens distortion parameter. The external parameters of the cameras 13 include the position and orientation information of the cameras 13, and more specifically, the positional relationship between the rotational axis of the rotational mount and the cameras 13, and the positional relationship between the cameras 13.

[0116]FIG. 3 is a diagram for explaining the perspective ratio. A pinhole camera model is assumed as the camera model. The perspective ratio is defined as the ratio between the focal length and the CCD size (for example, the vertical length of CCD). In the case shown in FIG. 3, the perspective ratio would be h_(ccd)/f. This corresponds to the parameter for determining enlargement/reduction ratio when the size of the object projected onto the screen is enlarged/reduced in perspective depending on the distance from the viewpoint to the object.

[0117] In reality, it is more likely that the focal length of the camera 13 and the CCD size are unknown, or, even when these parameters are known, they may not be sufficiently accurate for use in actual shape measurement.

[0118] In such a case, the perspective ratio can be determined as follows. First, a reference pole 30 of length H is captured so that the image fits in an image surface 31. The distance L between the camera and the reference pole 30 is then measured. If the vertical size of the capturing surface is h_(px) (in units of pixels) and the reference pole is captured with a length of h pixels in the capturing surface, the perspective ratio can be calculated by (H×h_(px))/(h×L) using the relation H/L=h/f.

[0119] The method for determining the external parameter, that is, the positional relationship between the rotational axis of the rotational mount 11 and the camera 13 will now be described. This process will be referred to as “rotational mount calibration” hereinafter.

[0120] Referring to FIG. 4, in the rotational mount calibration process, an object 40 (referred to as a “reference object”) with a know pattern printed is placed on the rotational mount 11. The known pattern is, for example, circle markings 42, and a plurality of such known patterns are printed on a flat reference object. All of the circle markings are printed at pre-specified locations, and the printed positions of the circle markings are pre-registered at the calculation unit for performing the rotational mount calibration process. The positional relationship between an object with a known pattern printed and the camera 13 can be reliably determined using Hough transform. The specifics of Hough transform will be described later.

[0121] In order to determine the positional relationship between the rotational axis 41 of the rotational mount 11 and the camera 13, it is not sufficient to only determine the positional relationship between the camera 13 and the reference object 40. To this end, the rotational mount 11 is rotated so that a plurality of images are taken for the reference object 40 from several points of view and the positional relationship between the camera 13 and the reference object 40 is determined for each viewpoint. Considering the fact that the camera viewpoint is fixed, this process corresponds to obtaining information on how the reference object 40 is moved with the rotational movement of the rotational mount 11. This movement forms a circular motion around the rotational axis 41 of the rotational mount 11, and thus, the movement of an arbitrary point on the reference object 40 (for example, its origin) is tracked and a circle is fitted to the trajectory. A line through the center of this circle which perpendicularly intersect the plane formed by the circle is the rotational axis 41 of the rotational mount 11.

[0122] The positional relationship determination method between the reference object 40 and the camera 13 using the Hough transform will now be described. Referring now to FIGS. 4 and 5, the reference object 40 is captured. The circle markings 42 are extracted from the captured image 50. A plurality of circle markings 42 are provided on the reference object 40 and thus, the circle markings cannot be distinguished from each other. Three circle markings are arbitrarily selected from among the extracted circle markings. Three circle markings data are also arbitrarily selected from the circle markings position data 51 registered at the calculation unit.

[0123] A conversion matrix from the reference object coordinate system to the camera coordinate system is then determined assuming these data are correct. The conversion matrix can be considered as the camera position and orientation seen in the reference object coordinate system, and can be determined by six degrees of freedom, camera positions X, Y, and Z and camera directions, α, β, and γ. The following equation 1 shows the relationship between the camera coordinate system and the reference object coordinate system defined in terms of X, Y, Z, α, β, and γ.

Equation 1

[0124] Obviously, the correctness of the values X, Y, Z, α, β, and γ are not ensured. However, when the values X, Y, Z, α, β, and γ are calculated for all combinations of arbitrarily selected three circle markings and three registered positional data, some of the combination will be correct, and yield accurate values for X, Y, Z, α, β, and γ. All of the correct combinations will yield the same values for X, Y, Z, α, β, and γ. The incorrect combinations, on the other hand, will yield random values for X, Y, Z, α, β, and γ.

[0125] As shown in FIG. 6, tables each corresponding to one of the variables X, Y, Z, α, β, and γ are prepared and all the values of X, Y, Z, α, β, and γ obtained for all the combinations are polled in the table. The value that forms a peak in each table is considered as the valid value. A point in FIG. 6 pointed by an arrow in the upward direction represents the valid value for that variable.

[0126] The positional relationship between the cameras 13 shown in FIG. 4, on the other hand, can be easily calculated from the conversion matrices between the reference object coordinate system and the camera coordinate systems when the same reference objet 40 is captured by a plurality of cameras 13. Specifically, if the value of the three-dimensional point P, of camera a coordinate system, represented in the coordinate system of camera a is Pa, the value of the same three-dimensional point P represented in the coordinate system of camera b is Pb, and the value of P in the reference object coordinate system is Po, the relationship between these values will become:

P _(a) =R _(oa) *P _(o) +T _(oa)

P _(b) =R _(ob) *P _(o) +T _(ob)

[0127] Where R_(oa), R_(ob), T_(oa), and T_(ob) are respectively rotation and translation parameters from the reference object coordinate system into the coordinate system of camera a or camera b. The coordinate conversion between the cameras will be:

P _(a) =R _(oa) *R _(ob) ⁽⁻¹⁾ *P _(b) +(T _(oa) −R _(ob) ⁽⁻¹⁾ *T _(ob))

[0128] Thus, the origin of camera b, for example, is at a position (T_(oa) −R _(ob) ⁽⁻¹⁾ T _(ob)) in the camera a coordinate system.

Rough Shape Calculation Step by Silhouette Method

[0129] The rough shape extraction using the silhouette method will now be described. Referring to FIG. 7, a process for extracting silhouette of the target is performed on a plurality of object images input by the cameras (S70). For example, a chroma key method using blue back or background subtraction method where the background image data is pre-input and silhouette is obtained by difference processing the object image data and background image data can be used for silhouette extraction. The detailed description of the chroma key method and the background subtraction method will not be given here, but appears in, for example, Japanese Patent Laid-Open Publication No. Hei 11-96361.

[0130] At the next step, a shape reconstruction process is performed to reconstruct the three-dimensional shape of the target from the plurality of silhouette images (S71). In this step, the three-dimensional space where the target object is expected to exist is represented as voxel space. The voxel space is a space that represents the three-dimensional space by a group of tiny three-dimensional elements (voxels). The space where the target object exist can be expected to be is the region above the rotational mount and which can be fitted into the camera view.

[0131] Each voxel is then projected onto an individual silhouette image and only the voxels that are projected onto all the object silhouette images (or onto at least a predetermined number of silhouette images) are extracted as the rough shape of the object.

[0132]FIG. 8 explains the shape reconstruction process as described above. In general, projection process to the voxel space 80 is performed based on multiple silhouette images, but the figure only shows a portion of the silhouette images.

[0133] At this point, a possible existence region is considered. The possible existence region for silhouette image 1 is the conical region 82 having the center of the camera viewpoint 81 as its vertex and the object image within the silhouette image 1 as its cross sectional shape. The possible existence regions for other silhouette images can be similarly defined. Thus, a target object will necessarily exist (unless there is an error in the silhouette images) inside the possible existence region. This process can be considered to correspond to an operation to cut the portions outside the silhouette from a gypsum block and finally cut out the object.

[0134] The group of voxels extracted in this manner represents the three-dimensional shape of the object. However, detail of the object shape cannot be represented by the rough shape. For example, care must be taken in a portion which cannot be observed as a silhouette outline (for example, the inside of a cup), because the rough shape will be calculated in a condition with the portion filled in. One method for accurately calculating such a convex shape is a space coding method which will be described next.

Detailed Shape Calculation Step Using Space Coding Method

[0135] An active stereo method by space coding method using binary patterns will now be described. A binary pattern refers to a black-and-white pattern. One set of examples of coded binary patterns are shown in FIGS. 9(A) through 9(G). FIG. 9(A) shows a pattern having a black half and a white half. The pitch is sequentially halved for the patterns shown in FIG. 9(B), 9(C), . . . 9(G). Such pattern lights are sequentially projected onto the target.

[0136]FIG. 10 shows, for descriptive purpose, an example of a code when three types of pattern lights are sequentially projected. If each pattern is considered as 8-bit data, the light portion of pattern A (shown as (A) in FIG. 10) is (1111) and the dark portion of pattern A is (0000), and the overall pattern can be represented by 8 bits, (11110000). Similarly, pattern B (shown as (B) in FIG. 10) is (11001100) and pattern C (shown as (C) in FIG. 10) is (10101010).

[0137] Now, if pattern A is considered as an MSB (Most Significant Bit) and pattern C is considered as an LSB (Least Significant Bit), a 3-bit binary code can be assigned to each of the divided regions. For example, a number (000)=0 (in decimal) can be assigned to the right most region and a number (111)=7 (decimal) can be assigned to the left most region.

[0138] By using n patterns as described, an n-bit binary code can be assigned to a space region, and thus, the space can be identified at once by this code. In FIG. 9, because a total of seven patterns are used, 128 space regions can be identified at once. When the space region of the point P where the object is located is specified by projecting such pattern lights onto the target, the space regions respectively projected onto the two camera images can be easily identified, and the correspondence relationship between the images can be easily obtained.

[0139] In other words, sections, for example, that are observed as 0010101 in time sequence in an image is unique for both camera images and they constitute correspondence points. Because the two camera positions are already determined at the calibration step, the three-dimensional position of each space region can be easily calculated by the principle of triangulation.

[0140] The detailed shape obtained in this manner becomes the depth data from the observation viewpoint, that is, the viewpoint of the light receiving section, and referred to as “detailed depth map” hereinafter. The detailed depth map is used for the three-dimensional shape data production at the next step. Details of the three-dimensional position measurement by space coding is described in, for example, “Three-dimensional image measurement” (by Masashi Iguchi and Hirosuke Sato, Shokodo).

Three-dimensional Data Production Step

[0141] The detailed shape is determined by the space coding method as described above, but, for a black portion where light is absorbed, there are some cases where no information can be obtained. In contrast, although detailed shape is not determined by the silhouette method, rough shape can be determined for the black portion where light is absorbed. Therefore, it is necessary to integrate the produced data to combine the advantages of the two methods. The integration process is performed at the three-dimensional shape data producing step.

[0142] At the three-dimensional shape data producing step, first, the rough shape represented by the voxels is converted into depth data from the camera viewpoint in the space coding method. This depth data is referred to as a “rough depth data” hereinafter. There also exist detailed depth map data obtained by the space coding method.

[0143] There is a possibility that a portion of the information is absent in the detailed depth map when a black portion which absorbs light is present in the target. In the rough depth map, on the other hand, there is a possibility that detailed concavity is not represented. Thus, the condition between each of the depth map information for each section can be divided into the following four cases:

[0144] 1. the depth value of the rough and detailed depth maps are equal;

[0145] 2. the depth value of the detailed depth map is larger than that of the rough depth map;

[0146] 3. the depth value of the detailed depth map is smaller than that of the rough depth map; or

[0147] 4. no value exists in the detailed depth map.

[0148] The first case corresponds to a section where the object shape is accurately measured by both silhouette and space coding methods. The second case corresponds to a section where the object shape is more accurately measured by the space coding method than by the silhouette method. The third case, on the other hand, corresponds to a case where an obviously erroneous value is output by the space coding method due to failure of black-and-white pattern extraction (specifically, determination that white pattern is projected even though a black pattern is projected or the like) in the space coding method.

[0149] This is because a true object surface always exists on or inside a surface determined by the silhouette method. The fourth case corresponds to a section where no shape data is obtained due to reasons such as the section being black.

[0150] Considering the above, a final depth map is obtained by integrating the two depth maps as follows. For cases 1 and 2: Use the detailed depth map as the final depth map. For cases 3 and 4: Use the rough depth map as the final depth map.

[0151]FIG. 11 shows a bird's eye view (wire frame display) of the rough and detailed depth maps and the final depth map obtained from these depth maps.

[0152] The final depth map is then applied on the rough data which is already obtained (and represented in the form of a voxel group). In other words, among the voxels that represent the rough data, the voxels that are not consistent with the final depth map, more specifically, the voxels with shorter distance than the distance from the light receiving section viewpoint indicated in the final depth map, are removed. After such removal, the object shape is represented by the remaining voxels.

[0153] The three-dimensional shape data is often used in various tools such as CG (Computer Graphics) and CAD (Computer Aided Design). During such processes, it is more typical to represent the three-dimensional shape data in a parametric surface such as polygon or NURBS, rather than by voxels. For this purpose, it is possible to extract voxels that correspond to the object surface from the group of voxels, and to convert the data into a polygon representation or into NURBS by connecting the surface voxels.

[0154] The following is a summary that repeats the effect of the method as described above.

[0155] 1. In the silhouette method, three-dimensional shape information can be obtained irrespective of the color of the target, but convex shape portions cannot be accurately measured.

[0156] 2. A triangulation method using a laser light and a space coding method for projecting a plurality of black-and-white patterns are available for accurately determining the shape of the convex portions, but in these methods, data cannot be obtained for black color portions and for mirror reflective sections.

[0157] 3. By combining the rough shape extraction by the silhouette method and, for example, space coding, it is possible to obtain good three-dimensional shape measurements for both convex shapes and black and mirror reflective sections.

Another Embodiment: Reduction in the Number of Patterns

[0158] The above description described a method to realize a general-purpose three-dimensional shape modeling by suitable usage of the advantages for the silhouette and space coding methods. It is also possible to reduce the number of the projection patterns at the space coding method by employing the rough shape information by the silhouette method or the like. An embodiment using this advantage will now be described.

[0159] A conceptual structure in this embodiment is identical to that of the first embodiment and will not be described again. A rough flow is also identical to that of the first embodiment and includes four steps, a calibration step, a rough shape extraction step, a detailed shape calculation step, and a three-dimensional data producing step. In the detailed shape calculation step, however, target surface candidate extraction is performed. The three-dimensional data producing step includes two substeps, a step for determining the possible existence region for a surface and a step for determining the final three-dimensional shape. This is shown in FIG. 12. The calibration and rough shape extraction are already described, and will not be described again.

[0160] The process at the target surface candidate extraction step will now be described. Consider a case where only patterns shown in FIGS. 9(D), 9(E), 9(F), and 9(G) are used from among the patterns shown in FIG. 9. In this case, 3-bits worth of information is absent which would have been distinguished by patterns (A), (B), and (C), and in general, eight possible points are present which show the same black-and-white pattern sequence.

[0161]FIG. 13 shows the condition described above. Here, two cameras a and b are placed at the right and left, and vertical binary patterns are projected onto the target. The figure is a view seen from the top. Assume a code 0010 is assigned at a point on the screen of camera a. The points on the screen of camera b which have the same code 0010 are shown by circles, which are referred to as candidates for corresponding point. Eight such correspondence candidate points exist. The three-dimensional positions of these eight points are indicated by circles in the figure shown as a surface candidate. These eight points are therefore extracted as the object surface candidate.

[0162] The step for determining a possible existence region for a surface will now be described. The inside region of the rough shape can be considered to indicate a region where the surface of the object can exist. This is because no surface of the object can exist outside the rough shape. In addition, when some characteristics of the target are known, a further limitation can be applied to the possible existence region for a surface. For example, when a human face is input, there are certain limitations on the asperity of the surface.

[0163] Thus, it is possible to apply a rule, such as, for example, “no true surface exists 3 cm inside of the rough shape surface”. Such a rule is not only applicable to a human face but also to a general shape when some characteristics of the target object are known. Therefore, at the step for determining a possible existence region for a surface, a region where the surface of the object can exist is determined based on the rough shape information and some characteristics of the target object.

[0164] At the final three-dimensional shape extraction step, only the obtained object surface candidates that exist within the possible existence region for the surface are extracted. In the case shown in FIG. 13, for example, although eight object surface candidates are originally present, the distance between the candidates are large. If the determined possible existence region for a surface is the portion indicated by the slashes, the only candidate among the eight candidates that fits in the possible existence region for a surface is the candidate indicated by the reference numeral 130. Thus, the circle shown by the reference numeral 130 is extracted as the final three-dimensional shape.

[0165] In this manner, by using the rough shape information, the number of patterns at the space coding method can be reduced. This is especially useful in reducing the length of the time for inputting data. When a triangulation method using laser light irradiation is used in place of the space coding method, noise related to the target object surface data (section of the surface shape data that is erroneously measured as extremely protruding from or lowered compared to the surface) which is often referred to as a spike can be easily removed.

Date Recording

[0166] The data production has been described. When new three-dimensional data is produced by integrating three-dimensional data obtained by different devices or methods having different reliability or precision, the data will have different precision or reliability depending on the section.

[0167] Foe example, the section where the rough shape data is taken as the final data can be considered as having lower reliability than the section where the detailed shape data is used as the final data. It is therefore preferable to record the data with the reliability evaluation value for each section of the three-dimensional data.

[0168] An example of reliability data is shown in FIG. 14 where the three-dimensional data is to be represented based on polygons. As shown in FIG. 14, the three-dimensional data can be divided into a vertex coordinate data section and the polygon data section where the polygons are constructed by connecting the vertices. For example, the data indicates that the 0th vertex (vid 0) is located at (x, y, z)=(0.0, 20.0, 43.0), the first vertex is located at (10.3, 5.2, 133.8), and the second vertex is located at (−20.9, 3.2, 13.9), and the 0th polygon (pid 0) is constructed by connecting the 0th, first, and second vertices. The reliability (for example, defined to have higher values for higher reliability) is defined for each vertex, for example r=1.0 is defined for the 0th vertex and r=0.5 for the first vertex.

[0169] In this manner, by recording the reliability data along with the three-dimensional shape data, it is possible to proceed with the integration process while weighting the data based on the reliability to integrate the produced three-dimensional shape data and three-dimensional shape data of the same target but obtained by different method or device.

[0170] When the three-dimensional shape data is applied in various applications, the portion that can be used can be selectively extracted based on the reliability. For example, when the shape is to be viewed on the Internet, the precision of the shape is not as important, and the three-dimensional shape data can be shown including the data with low reliability.

[0171] When the same data is input to a CAD tool, on the other hand, the precision of the shape is important, and only the data with high reliability is input. The other data can be interpolated and produced by a manual modeling function provided in the CAD tool.

[0172] Moreover, when the three-dimensional data is to be manually corrected and processed, it is generally true that the maneuverability improves if the points to be corrected are automatically told to an operator. In this case, if the reliability information is added to the three-dimensional data, the correction points can be told based on this information.

[0173] The above description of the data recording assumes that the reliability is evaluated in a numerical value. However, the evaluation of the reliability is not limited to a numerical value. There can be another method, for example, where the reliability is divided into several levels, and a symbol is assigned to each of the levels. In case where the data recording method is a data recording method integrating a plurality of media, a method can be used where the reliability is represented visually or by audio.

Others

[0174] In the above description, the rough shape is determined by the silhouette method, but the rough shape can be obtained by other methods. When the choice of a target is narrowed to some extent in advance, it is also preferable to give the rough shape by manually supply or by supply from database or the like.

[0175] Also, in the above description, an active stereo method using a binary coded light is used as the method for the detailed shape extraction. The detailed shape extraction can also be performed by a triangulation method using color coding light or a laser light, or by a Moire method. The “pattern light” in the present invention includes the projection lights used in these methods. If the positional relationship between the pattern projecting section and the camera is accurately known in advance, the number of cameras to be used can be one.

[0176] It is also described that it is possible to reduce the number of projection patterns in the space coding method using the rough shape information. Similarly, in the triangulation method using a laser light, it is possible to irradiate a plurality of laser lights, obtain a plurality of candidates for depth data, and then narrow the candidates using the rough shape information. In such a case, the data input can be accelerated compared to a case where only a single laser light is used.

[0177] In addition, in the above, the rough shape obtained by the silhouette method is represented as a group of voxels. However, it is also possible to reconstruct the shape by an envelope line, as described in “Shape Measurement and Description of Curved Surface Objects”, Sato et al., Electrical Communication Institute Paper, Vol. J-62-D, No. 1(1979). It is also possible to represent the reconstructed shape by a parametric surface such as polygons or NURBS.

Binary Pattern Projection which does not Require Position Coincidence

[0178] A space coding method using general binary patterns is described above.

[0179] When binary patterns as shown in FIGS. 9 or 10 are used, the following problem is observed. In general, there is a need to separate the input image with the binary pattern projected onto the target into a portion corresponding to the white pattern (white pattern region) and a portion corresponding to the black pattern (black pattern region). The boundary between the white pattern and black pattern is unstable in that it may be assigned to either the white pattern region or the black pattern region.

[0180]FIG. 16 shows a condition where binary patterns are projected from the pattern projecting section 12 onto the input target 10 and images are input by two cameras 13A and B. FIG. 17 shows an enlarged view near the boundary between the white and black pattern sections in the image input by camera A.

[0181]FIG. 17(a 1) shows a portion of the image input by camera A. FIG. 17(b 1) shows a portion of the image input by camera B. In both cases, the boundary between the black and white patterns indicated by an arrow pointing upward has an intermediate lightness. In such a case, it is indecisive as to which of the two codes are finally assigned to the portion indicated by the up-pointing arrow, a code corresponding to the black pattern or a code corresponding to the white pattern.

[0182]FIG. 17(a 2) shows a case where the portion in an image input by camera A indicated by the up-pointing arrow is assigned a code corresponding to the white pattern and FIG. 17(b 2) shows a case where the portion in an image input by camera B indicated by the up-pointing arrow is assigned a code corresponding to the black pattern. In this case, although the same code should be assigned to the corresponding portions indicated by the up-pointing arrows, in reality, different codes are assigned, resulting in an error in the correspondence relationship.

[0183] In order to avoid such a problem, there is a method, as shown in FIG. 18, in which the boundary i between the white and black in pattern A is provided at a point corresponding to the midpoint between the boundaries ii and iii between the white and black in pattern B. A similar positional relationship applies between the patterns B and C. For the most detailed pattern, the code assignment is assigned to the pattern boundary. That is, the boundary having white at the left and black at the right is assigned a code of 1 and the boundary with black at the left and white at the right is assigned a code of 0.

[0184] However, in this case, the pattern position must be accurately set. If the setting is not accurate, it is possible that, for example, pattern A will slide to the right, resulting in the boundaries i and ii coinciding, and thus, the same problem is generated as described above.

[0185] However, in order to accurately set the pattern positions, an expensive pattern projecting mechanism will be required. When there is no need to accurately set the pattern positions, on the other hand, an inexpensive pattern projecting mechanism such as a slide projector can be used. In order to avoid the above described problem without accurately setting the pattern positions, it is preferable to employ the following method.

[0186] The method classifies the input image with the binary patterns projected onto the target into six types of regions as shown in FIG. 19, rather than into only two, the portion corresponding to the white pattern (white pattern region) and the portion corresponding to the black pattern (black pattern region).

[0187] Specifically, the six types include:

[0188] A: white pattern region;

[0189] B: white region at the transition region from the white pattern to the black pattern;

[0190] C: black region at the transition region from the white pattern to the black pattern;

[0191] D: black pattern region;

[0192] E: black region at the transition region from the black pattern to the white pattern; and

[0193] F: white region at the transition region from the black pattern to the white pattern.

[0194] A correspondence relationship is then obtained after such separation into regions (code assignment).

[0195] Here, the following correspondence relationships are taken to be true in order to consider errors in region assignment.

[0196] A <−> F, A, B

[0197] B <−> A, B, C

[0198] C <−> B, C, D

[0199] D <−> C, D, E

[0200] E <−> D, E, F

[0201] F <−> E, F, A

[0202] In this manner, by increasing the number of assigned codes from two and introducing an allowance range for the correspondence relationship, the correspondence relationship can be stably obtained even when there are some unstable elements during the region separation.

Color Code Pattern Projection

[0203] A space coding method using a color pattern will be described now. In the above space coding method using binary patterns, a plurality of patterns need to be projected. Alternatively, by employing a color pattern, the number of patterns to be projected can be reduced.

[0204]FIG. 20 shows an example of a color pattern. It is preferable to have the colors between the adjacent patterns be as different as possible. It is also preferable that the colors, when represented in HSV space, have at least 90 degrees difference in hue, or at least 0.3 difference in lightness. In the case shown in FIG. 20, the pattern is constructed using four colors, red, green, blue, and black. It is also possible to use other combinations or other colors with sufficient differences in hue and lightness.

[0205] The distance from the viewpoint where each image is captured to the target is calculated for an image of an object projected with such a pattern by the following processes.

[0206] 1. Extract characteristic points from the image Edge extraction is performed on the image and a thinning operation is applied. Thinned edges having a value of at least a predetermined value are considered as characteristic points.

[0207] 2. Assign a property to each characteristic point

[0208] The color information at the left and at the right of the characteristic point is assigned as a property. In order to stabilize the property assignment, it is preferable to average the color data within a region between right and left characteristic points. Also, it is possible to average the color data within a region after region division is applied to the image.

[0209] 3. Associate characteristic points between images from a plurality of viewpoints based on the property

[0210] Association between characteristic points extracted from individual images is performed based on the property.

[0211] Here, it is assumed that the correspondence is more probable for characteristic points having similar property. The similarity is calculated by representing the property by RGB and using an equation:

|Rla−Rlb|−|Gla |Glb|+|Bla−Blb|+|Rra−Rrb|+|Gra−Grb|+|Bra−Brb|

[0212] Here, Rla means the value of the R component related to the color at the left of the characteristic point in the image from camera viewpoint a, and |Rla −Rlb| means the absolute value of the difference between Rla and Rlb. Alternatively, it is also possible to similarly evaluate the similarity using HSV or other color spaces.

[0213] In process 3, it is also preferable to use a multocular stereo method of trinocular or more in place of a binocular stereo method where characteristic points in two images having the most similar properties are associated. The multocular stereo method is more reliable in associating the characteristic points.

[0214] For example, in a trinocular stereo method, in addition to extracting a plurality of characteristic points that are similar in the property between two images (AB pair) corresponding to camera viewpoints A and B, a plurality of characteristic points are also extracted for two images corresponding to camera viewpoints B and C (BC pair) which have similar property. For each corresponding characteristic point candidate, a depth value from the camera viewpoint B is determined. If the corresponding characteristic point candidate is, in fact, the corresponding characteristic point, the depth value determined from the AB pair and the depth value determined from the BC pair should coincide (or be within an error limit).

[0215] Therefore, the depths for extracted candidate characteristic points are compared, and the candidate with the smallest difference is assumed to be the true corresponding point. In this manner, the correspondence of the characteristic points can be reliably determined. FIG. 21 shows the depth value for correspondence characteristic point candidates using three cameras, A, B, and C. In this case, the pair indicated by a circle will be ultimately judged to be the true corresponding characteristic point.

[0216] In the above description, the stereo camera positions are assumed in the horizontal direction (right and left). Accordingly, the patterns are assumed to be vertical stripes. When the stereo cameras are positioned vertically (above and below), it is preferable to use horizontal stripe patterns.

Usage of 3D Sensors with Different Precision

[0217] In addition, it is also preferable to use a plurality of three-dimensional shape inputting means, for example, laser scanner heads, each with different input precision in the three-dimensional shape inputting apparatus.

[0218] In general, a laser scanner head with high input precision has smaller measurement range than a laser scanner head with lower input precision. Using this general fact, the rough shape of the target is first obtained using the lower precision laser scanner head. More detailed target shape can then be obtained using the higher precision laser scanner head.

[0219] Here, the high precision laser scanner head is mounted on a robot arm or on a multi-axis stage which moves the high precision laser scanner head to a suitable position for measurement based on the obtained rough shape in order to obtain necessary shape data. In this manner, it is possible to measure the shape automatically and with high precision for a target having a large size such that it is difficult to measure the entire target by the high precision laser scanner head alone.

[0220] In the above description, a case is shown where two types of laser scanner heads with different precision are used, but it is also possible to use an increased number of laser scanner heads. Also, it is obviously possible to use other three dimensional shape measurement means based on other methods in place of the laser scanner heads, such as, for example, three-dimensional measurement means using an active stereo method which is already described or a Moire method.

[0221] As described, according to the present invention, by using both rough shape information and detailed shape information obtained by light irradiation, it is possible to obtain good three-dimensional shape measurements for both convex shape and dark colored section and mirror reflective section.

[0222] Moreover, by using the rough shape information, it is possible to reduce the number of projection patterns in the space coding method or to easily remove the spike noise in the triangulation method using a laser light irradiation. 

What is claimed is:
 1. A three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: projection means for projecting pattern light onto said three dimensional object; image input means for inputting an image of said three dimensional object; rough shape calculation means for calculating a rough shape from said image; detailed shape calculation means for calculating a detailed shape from said image; and three dimensional shape data generating means for generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 2. A three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: projection means for projecting pattern light onto said three dimensional object; image input means for inputting an image of said three dimensional object; rough shape input means for inputting a rough shape of said three dimensional object; detailed shape calculation means for calculating a detailed shape from said image; and three dimensional shape data generating means for generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 3. A three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: image input means for inputting an image of said three dimensional object, said image being obtained by projecting pattern light onto said three dimensional object; rough shape calculation means for calculating a rough shape from said image; detailed shape calculation means for calculating a detailed shape from said image; and three dimensional shape data generating means for generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 4. A three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: image input means for inputting an image of said three dimensional object, said image being obtained by projecting pattern light onto said three dimensional object; rough shape input means for inputting a rough shape of said three dimensional object; detailed shape calculation means for calculating a detailed shape from said image; and three dimensional shape data generating means for generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 5. A three dimensional modeling apparatus according to claim 1, wherein said three dimensional shape data generating means determines the final three dimensional shape data based on the following rule; if the detailed shape exits inside the rough shape, then the detailed shape is the final three dimensional shape data of said object, otherwise the rough shape is taken as the final three dimensional shape data of said object.
 6. A three dimensional modeling apparatus according to claim 1, wherein said three dimensional shape data generating means obtains a region where the object surface can exist based on the rough shape, to generate three dimensional shape data of said three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.
 7. A three dimensional modeling apparatus according to claim 1, wherein said detailed shape calculation means obtains a plurality of object surface location candidates from the input image.
 8. A three dimensional modeling apparatus according to claim 1, wherein said detailed shape calculation means sets a region where the object surface cannot exist in a portion inside the rough shape and determines a region inside the rough shape other than said region where the object surface cannot exist as a region where the object surface can exist, to generate three dimensional shape data of said three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.
 9. A three dimensional modeling apparatus according to claim 1, wherein said three dimensional shape data generating means determines a final object surface location candidate from a plurality of object surface location candidates based on a region where the object surface can exist and generates three dimensional shape data of said three dimensional object based on said final object surface location candidate.
 10. A three dimensional modeling apparatus according to claim 1, wherein the rough shape is calculated by said rough shape calculation means based on silhouette information obtained from the object image input by said image input means.
 11. A three dimensional shape data recording apparatus for recording three dimensional shape data of a three dimensional object, comprising: three dimensional shape data generation means for generating three dimensional shape data of said three dimensional object; three dimensional shape data reliability assigning means for assigning a data reliability evaluation value to each of said three dimensional shape data; and three dimensional shape data recording means for recording three dimensional shape data to which said reliability evaluation value is assigned in a medium.
 12. A three dimensional shape data recording apparatus for recording three dimensional shape data of a three dimensional object, comprising: three dimensional shape data capturing means for capturing three dimensional shape data of said three dimensional object; three dimensional shape data reliability assigning means for assigning a data reliability evaluation value to each of said three dimensional shape data; and three dimensional shape data recording means for recording three dimensional shape data to which said reliability evaluation value is assigned in a medium.
 13. A three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of: projecting pattern light onto said three dimensional object; inputting an image of said three dimensional object; calculating a rough shape from said image; calculating a detailed shape from said image; and generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 14. A three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of: projecting pattern light onto said three dimensional object; inputting an image of said three dimensional object; capturing a rough shape of said three dimensional object; calculating a detailed shape from said image; and generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 15. A three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of: inputting an image of said three dimensional object, said image being obtained by projecting pattern light onto said three dimensional object; calculating a rough shape from said image; calculating a detailed shape from said image; and generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 16. A three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of: inputting an image of said three dimensional object, said image being obtained by projecting pattern light onto said three dimensional object; capturing a rough shape of said three dimensional object; calculating a detailed shape from said image; and generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 17. A three dimensional modeling method according to claim 13, wherein said step of generating three dimensional shape data includes determining the final three dimensional shape data based on the following rule; if the detailed shape exits inside the rough shape, then the detailed shape is the final three dimensional shape data of said object, otherwise the rough shape is taken as the final three dimensional shape data of said object.
 18. A three dimensional modeling method according to claim 13, wherein said step of generating three dimensional shape data includes obtaining a region where the object surface can exist based on the rough shape, to generate three dimensional shape data of said three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.
 19. A three dimensional modeling method according to claim 13, wherein said step of calculating detailed shape includes obtaining a plurality of object surface location candidates from the input image.
 20. A three dimensional modeling method according to claim 13, wherein said step of calculating detailed shape includes setting a region where the object surface cannot exist in a portion inside the rough shape and determining a region inside the rough shape other than said region where the object surface cannot exist as a region where the object surface can exist, to generate three dimensional shape data of said three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.
 21. A three dimensional modeling method according to claim 13, wherein said step of generating three dimensional shape data includes determining a final object surface location candidate from a plurality of object surface location candidates based on a region where the object surface can exist and generating three dimensional shape data of said three dimensional object based on said final object surface location candidate.
 22. A three dimensional modeling method according to claim 13, wherein the rough shape is calculated by said rough shape calculation means based on silhouette information obtained from the object image input by said step of inputting an image.
 23. A three dimensional shape data recording method for recording three dimensional shape data of a three dimensional object, comprising the steps of: generating three dimensional shape data of said three dimensional object; assigning a data reliability evaluation value to each of said three dimensional shape data; and recording three dimensional shape data to which said reliability evaluation value is assigned in a medium.
 24. A three dimensional shape data recording method for recording three dimensional shape data of a three dimensional object, comprising the steps of: capturing three dimensional shape data of said three dimensional object; assigning a data reliability evaluation value to each of said three dimensional shape data; and recording three dimensional shape data to which said reliability evaluation value is assigned in a medium.
 25. A medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, said program comprising the steps of: controlling pattern light projection section connected to said computer for projecting pattern light onto said three dimensional object; inputting an image of said three dimensional object; calculating a rough shape from said image; calculating a detailed shape from said image; and generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 26. A medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, said program comprising the steps of: controlling a pattern light projection section connected to said computer for projecting pattern light onto said three dimensional object; inputting an image of said three dimensional object; capturing a rough shape of said three dimensional object; calculating a detailed shape from said image; and generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 27. A medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, said program comprising the steps of: inputting an image of said three dimensional object, which is obtained by projecting pattern light onto said three dimensional object; calculating a rough shape from said image; calculating a detailed shape from said image; and generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 28. A medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, said program comprising the steps of: inputting an image of said three dimensional object, which is obtained by projecting pattern light onto said three dimensional object; capturing a rough shape of said three dimensional object; calculating a detailed shape from said image; and generating three dimensional shape data of said three dimensional object based on said rough shape and said detailed shape.
 29. A medium having a three dimensional modeling program recorded therein according to claim 25, wherein said step of generating three dimensional shape data includes determining the final three dimensional shape data based on the following rule; if the detailed shape exists inside the rough shape, then the detailed shape is the final three dimensional shape data of said object, otherwise the rough shape is taken as the final three dimensional shape data of said object.
 30. A medium having a three dimensional modeling program recorded therein according to claim 25, wherein said step of generating three dimensional shape data includes obtaining a region where the object surface can exist based on the rough shape, to generate three dimensional shape data of said three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.
 31. A medium having a three dimensional modeling program recorded therein according to claim 25, wherein said step of calculating a detailed shape includes obtaining a plurality of object surface location candidates from the input image.
 32. A medium having a three dimensional modeling program recorded therein according to claim 25, wherein said step of calculating a detailed shape includes setting a region where the object surface cannot exist in a portion inside the rough shape and determining a region inside the rough shape other than said region where the object surface cannot exist as a region where the object surface can exist, to generate three dimensional shape data of said three dimensional object based on the rough shape, the detailed shape, and the region where the object surface can exist.
 33. A medium having a three dimensional modeling program recorded therein according to claim 25, wherein said step of generating three dimensional shape data includes determining a final object surface location candidate from a plurality of object surface location candidates based on a region where the object surface can exist and generating three dimensional shape data of said three dimensional object based on said final object surface location candidate.
 34. A medium having a three dimensional modeling program recorded therein according to claim 25, wherein the rough shape is calculated by said step of calculating a rough shape based on silhouette information obtained from the object image input by said step of inputting an image.
 35. A medium having a program recorded therein for causing a computer to record three dimensional shape data of a three dimensional object in the medium, said program comprising the steps of: generating three dimensional shape data of said three dimensional object; assigning a data reliability evaluation value to each of said three dimensional shape data; and recording three dimensional shape data to which said reliability evaluation value is assigned in the medium.
 36. A medium having a program recorded therein for causing a computer to record three dimensional shape data of a three dimensional object in the medium, said program comprising the steps of: capturing three dimensional shape data of said three dimensional object; assigning a data reliability evaluation value to each of said three dimensional shape data; and recording three dimensional shape data to which said reliability evaluation value is assigned in the medium.
 37. A medium having three dimensional shape data of a three dimensional object recorded therein, said medium holding data reliability evaluation value information for each of said three dimensional shape data.
 38. A three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: projection means for projecting pattern light onto said three dimensional object; image input means for inputting an image of said three dimensional object; and three dimensional shape calculation means for calculating a three dimensional shape of said three dimensional object from the input image, wherein said three dimensional shape calculation means extracts a pattern projected region and a pattern border region in said input image to calculate the three dimensional shape of said three dimensional object based on these regions.
 39. A three dimensional modeling apparatus according to claim 1, wherein said detailed shape calculation means extracts a pattern projected region and a pattern border region in said input image to calculate the detailed shape of said three dimensional object based on these regions.
 40. A three dimensional modeling apparatus according to claim 38, wherein said pattern light has a plurality of binary patterns.
 41. A three dimensional modeling apparatus according to claim 38, wherein said image input means performs image input from at least two positions.
 42. A three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: projection means for projecting pattern light onto said three dimensional object; image input means for inputting an image of said three dimensional object; and three dimensional shape calculation means for calculating a three dimensional shape of said three dimensional object from the input image, wherein said image input means performs image input from at least two positions, said three dimensional shape calculation means extracts a portion in said input image where color or density changes, and matching of portions where color or density changes is performed between input images, to calculate the three dimensional shape of said three dimensional object.
 43. A three dimensional modeling apparatus according to claim 1, wherein said image input means performs image input from at least two points at different locations, said detailed shape calculation means extracts a portion in said input image where color or density changes, and matching of portions where color or density changes is performed between input images, to calculate the three dimensional shape of said three dimensional object.
 44. A three dimensional modeling apparatus according to claim 3, wherein said image input means performs image input where the images are captured at least two different points at different locations, said detailed shape calculation means extracts a portion in said input image where color or density changes, and matching of potions where color or density changes is performed between input images, to calculate the three dimensional shape of said three dimensional object.
 45. A three dimensional modeling apparatus according to claim 42, wherein said pattern light for projection includes multi-color patterns in which adjacent patterns have different colors having a hue difference of at least 90 degree or more, or a brightness difference of 0.3 or more, when the colors are represented in an HSV space.
 46. A three dimensional modeling apparatus according to claim 42, wherein said matching of the portions where color or density changes is obtained based on properties of the portions where color or density changes, which are obtained from the input images.
 47. A three dimensional modeling apparatus according to claim 46, wherein the property of the portion where color or density changes is color information regarding portions located to the left and right of, or above and below, said portion where color or density changes in said input image.
 48. A three dimensional modeling apparatus according to claim 46, wherein averaging is performed on the input images when said property is obtained.
 49. A three dimensional modeling apparatus according to claim 48, wherein said averaging is performed for each of divided regions of the input image.
 50. A three dimensional modeling apparatus according to claim 1, further comprising moving means for moving said projection means and said image input means.
 51. A three dimensional modeling apparatus according to claim 50, wherein said moving means moves said projection means and said image input means based on said rough shape.
 52. A three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: at least two three dimensional shape input means for obtaining a three dimensional shape of said three dimensional object; and moving means for moving said three dimensional shape input means, wherein said three dimensional shape input means have different three dimensional input accuracy.
 53. A three dimensional modeling apparatus according to claim 52, wherein said moving means moves said three dimensional shape input means having higher three dimensional input accuracy based on three dimensional shape information obtained by said three dimensional shape input means having lower three dimensional input accuracy.
 54. A three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of: projecting pattern light onto said three dimensional object; inputting an image of said three dimensional object; and calculating a three dimensional shape of said three dimensional object from the input image, wherein said step of calculating the three dimensional shape includes extracting a pattern projected region and a pattern border region in said input image to calculate the three dimensional shape of said three dimensional object based on these regions.
 55. A three dimensional modeling method according to claim 13, wherein said step of calculating the detailed shape includes extracting a pattern projected region and a pattern border region in said input image to calculate the detailed shape of said three dimensional object based on these regions.
 56. A three dimensional modeling method according to claim 54, wherein said pattern light has a plurality of binary patterns.
 57. A three dimensional modeling method according to claim 54, wherein said step of inputting an image includes performing image input from at least two positions.
 58. A three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising the steps of: projecting pattern light onto said three dimensional object; inputting an image of said three dimensional object; and calculating a three dimensional shape of said three dimensional object from the input image, wherein said step of inputting an image includes performing image input from at least two positions, said step of calculating the three dimensional shape includes extracting a portion in said input image where color or density changes, and matching portions where color or density changes between input images, to calculate the three dimensional shape of said three dimensional object.
 59. A three dimensional modeling method according to claim 13, wherein said step of inputting an image includes performing image input where the images are captured at least two points at different locations, said step of calculating a detailed shape includes extracting a portion in said input image where color or density change, and matching portions where color or density changes between input images, to calculate the three dimensional shape of said three dimensional object.
 60. A three dimensional modeling method according to claim 58, wherein said pattern light for projection includes multi-color patterns in which adjacent patterns have different colors having a hue difference of at least 90 degrees or more, or a brightness difference of 0.3 or more, when the colors are represented in an HSV space.
 61. A three dimensional modeling method according to claim 58, wherein said matching of the portions where color or density changes is obtained based on properties of the portions where color or density changes, which are obtained from the input image.
 62. A three dimensional modeling method according to claim 61, wherein the property of the portion where color or density changes is color information regarding portions located to the left and right of, or above and below, said portion where color or density changes in said input images.
 63. A three dimensional modeling method according to claim 61, wherein averaging is performed on the input images when said property is obtained.
 64. A three dimensional modeling method according to claim 63, wherein said averaging is performed for each of divided regions of the input images.
 65. A three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising: at least two three-dimensional shape inputting steps of obtaining the three dimensional shape of said three dimensional object; and a step of moving a three dimensional shape input section; wherein said three dimensional shape inputting steps have different three dimensional input accuracy.
 66. A three dimensional modeling apparatus for generating three dimensional shape data of a three dimensional object, comprising: first three dimensional shape measuring means for obtaining rough shape information of said three dimensional object; second three dimensional shape measuring means for obtaining detailed shape information of said three dimensional object; and a three dimensional shape data generating section for generating the three dimensional shape data of said three dimensional object based on said rough shape information and said detailed shape information.
 67. A three dimensional modeling apparatus according to claim 66, further comprising control means for controlling the position of said second three dimensional shape measuring means, said control means being controlled based on said rough shape information obtained by said first three dimensional measuring means.
 68. A three dimensional modeling method for generating three dimensional shape data of a three dimensional object, comprising: a first three dimensional shape measuring step of obtaining rough shape information of said three dimensional object; a second three dimensional shape measuring step of obtaining detailed shape information of said three dimensional object; and a three dimensional shape data generating step of generating the three dimensional shape data of said three dimensional object based on said rough shape information and said detailed shape information.
 69. A medium having a program recorded therein for causing a computer to generate three dimensional shape data of a three dimensional object, said program comprising: a first three dimensional shape measuring step of obtaining rough shape information of said three dimensional object; a second three dimensional shape measuring step of obtaining detailed shape information of said three dimensional object; and a three dimensional shape data generating step of generating the three dimensional shape data of said three dimensional object based on said rough shape information and said detailed shape information. 